import { registerMicroApps } from 'qiankun';
// import config from '@/config'
// const { subApps } = config
export function registerApps(subApps) {
	try {
		registerMicroApps(subApps, {
			beforeLoad: [
				(app) => {
					console.log('before load', app);
				}
			],
			beforeMount: [
				(app) => {
					console.log('before mount', app);
				}
			],
			afterUnmount: [
				(app) => {
					console.log('before unmount', app);
				}
			]
		});
	} catch (err) {
		console.log(err);
	}
}
